package org.anita.movingpuzzle;

import android.content.Context;
import android.util.AttributeSet;

public class SilesianLandscapeBoardView extends MovingPuzzleBoardView {

	private static final int HEIGHT_TILES_COUNT = 4;
	private static final int WIDTH_TILES_COUNT = 4;
	
	public SilesianLandscapeBoardView(Context context) {
		super(context);
		
		init();
	}
	
	public SilesianLandscapeBoardView(Context context, AttributeSet attrs) {
		super(context, attrs);
		
		init();
	}
	
	private void init() {
		initForSize(WIDTH_TILES_COUNT, HEIGHT_TILES_COUNT);
		setTileImage(0, 0, R.drawable.elem_1);
		setTileImage(1, 0, R.drawable.elem_2);
		setTileImage(2, 0, R.drawable.elem_3);
		setTileImage(3, 0, R.drawable.elem_4);
		setTileImage(0, 1, R.drawable.elem_5);
		setTileImage(1, 1, R.drawable.elem_6);
		setTileImage(2, 1, R.drawable.elem_7);
		setTileImage(3, 1, R.drawable.elem_8);
		setTileImage(0, 2, R.drawable.elem_9);
		setTileImage(1, 2, R.drawable.elem_10);
		setTileImage(2, 2, R.drawable.elem_11);
		setTileImage(3, 2, R.drawable.elem_12);
		setTileImage(0, 3, R.drawable.elem_13);
		setTileImage(1, 3, R.drawable.elem_14);
		setTileImage(2, 3, R.drawable.elem_15);
		setEmptyTile(3, 3);
	}
}
